package com.googlecode.afdbaccess.commandlinedemo.db;

import com.googlecode.afdbaccess.cache.Transaction;
import com.googlecode.afdbaccess.cache.exceptions.DataLayerException;
import com.googlecode.afdbaccess.cache.exceptions.DataLayerWrappedSqlException;

public class Insert {
    public static long doInsert(Transaction t) throws DataLayerWrappedSqlException, DataLayerException {
        // this will return the value of the automatically generated primary key
        return t.executeInsert("INSERT INTO INSTABLE(javalong) VALUES(" + System.currentTimeMillis() + ")", null);
    }
}
